Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 23b0c730aa258ab19bc50cbadd163d3522c229eb


Parents : 8ad8dc8
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-04-23T03:19:10-05:00

chore(build): exclude 'repository-server-bundled' from package data and update fetch script documentation

Changes

3 files changed, 8 insertions(+), 0 deletions(-)


Diff

diff --git a/MANIFEST.in b/MANIFEST.in
index 3d74903b..f5d78504 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,4 +1,5 @@
recursive-include meshchatx/public *
+recursive-exclude meshchatx/public/repository-server-bundled *
recursive-include meshchatx/src/backend *
include meshchatx/src/version.py
include meshchatx/src/__init__.py

diff --git a/pyproject.toml b/pyproject.toml
index 62edff2a..f1b3bb62 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -76,6 +76,9 @@ namespaces = false
[tool.setuptools.package-data]
meshchatx = ["public/**/*", "public/*", "src/backend/data/community_interfaces.json", "src/backend/data/licenses_frontend.json", "src/backend/data/THIRD_PARTY_NOTICES.txt", "src/frontend/public/repository-server-index.html"]
+[tool.setuptools.exclude-package-data]
+meshchatx = ["public/repository-server-bundled/**"]
+
[build-system]
requires = ["setuptools>=65.0", "wheel"]
build-backend = "setuptools.build_meta"

diff --git a/scripts/build/fetch_repository_wheels.py b/scripts/build/fetch_repository_wheels.py
index f34573ae..74f28280 100644
--- a/scripts/build/fetch_repository_wheels.py
+++ b/scripts/build/fetch_repository_wheels.py
@@ -7,6 +7,10 @@ ship with the same artifact layout as the Vite output. At runtime,
copies any missing ``*.whl`` files from that directory into each identity's
``repository-server/bundled`` folder (no network required).
+The PyPI/sdist wheel intentionally omits this tree (see ``MANIFEST.in`` and
+``tool.setuptools.exclude-package-data``); use this script for desktop/full
+builds or refresh bundled wheels in the app when online.
+
Usage::
python3 scripts/build/fetch_repository_wheels.py [--dest DIR]


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────